package qumaimai.dao;

import java.util.List;

import qumaimai.entity.User;

public interface UserDao {
	User login(String username,String password);
	int add(String account,String password,String email,String phone);
	int checkAccount(String account);
	int checkPhone(String phone);
	int checkEmail(String email);
	int editNickName(String nickname,int id);
	int editPhone(String phone,int id);
	int editEmail(String email,int id);
	int editPassword(String password,int id);
	int editFace(String face,int id);
	List<User> findAll(int page,int size,String account,String phone);
	int getCount(String account,String phone);
	int lock(int id);
	int reset(int id);
}
